package org.firebug.spring.boot.redisson.controller;

import org.firebug.common.bean.api.Response;
import org.firebug.spring.boot.redisson.service.UserService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping(value = {"/user"})
public class UserController {
    @Resource
    private UserService userService;

    @RequestMapping(value = "/remove/{id}", method = RequestMethod.DELETE)
    public Response remove(@PathVariable Long id) {
        userService.removeById(id);
        return Response._200;
    }
}
